package com.yang.Thread;

/**
 * @Description: TODO
 * @Author: YangTing
 * @Date: 2024-05-16 07:39
 */

public class HappyNewYear {
    public static void main(String[] args) {
        for (int i = 10; i >= 0; i--) {
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            if(i >= 1 ){
                System.out.println(i);
            }else{
                System.out.println("happy new year~");
            }
        }
    }
}
